Skip to content

Conversation

hasanmo
Copy link
Member

@hasanmo hasanmo commented Oct 12, 2026

Change

Merge the current development work into main.

Implemented recipe browsing through Explore, with search, category and cooking-time filters, sorting, pagination, and URL state.

Added My Cookbook with Saved and Created views, filtering, and shared saved-recipe state.

Implemented the Recipe Detail page with recipe information, adjustable servings, scaled ingredients, rating interactions, ownership and visibility states, and navigation back to the originating browse view.

Added the Add Recipe frontend with form validation, ingredient and instruction editing, and responsive layouts.

Implemented database-backed registration, login, logout, and persistent sessions. Protected Cookbook and Add Recipe routes now wait for session restoration before rendering or redirecting.

Added the PostgreSQL recipe database model, including:

  • Recipes linked to their authors
  • Ordered ingredients and instructions
  • Tags, bookmarks, and ratings
  • Optional cuisine and canonical category values
  • Source-recipe references for editable copies
  • Constraints, indexes, timestamp triggers, and migrations

Added a Not Found page, improved shared navigation and reusable UI components, and updated documentation and tests.

Recipe browsing and interactions still use mock recipe data and client state. Recipe CRUD endpoints and database integration for these features are planned separately.

Merge order

This PR consolidates the feature work already merged into dev.

Base branch: main
Compare branch: dev

Verification

The following checks passed on the database-model branch before it was merged into dev:

  • npm run check, including formatting, linting, generated types, migration metadata, TypeScript, 189 unit tests, and production builds
  • All 12 database integration checks

The 4 browser smoke tests also passed before the latest database review changes.

The updated dev branch has been fetched and pulled locally. Checks have not been rerun on the final combined dev commit.

Database migration notes

Existing users and sessions are preserved.

Migration 0002 requires the legacy recipes table to be empty. If it contains data, migration stops and requires an explicit backfill.

Migration 0003 normalizes existing category labels to lowercase keys. Unknown categories require explicit correction before migration can complete.

Course requirements and AI use

Supports responsive design, accessibility, routing, reusable components, shared state, user interaction, database-backed authentication, relational modelling, and automated testing.

AI assisted with planning, implementation, documentation, testing, and code review for parts of this work.

olestan and others added 24 commits September 28, 2026 12:57
* feat: add design tokens and cascade layers

* feat: add global reset and base styles

* feat: add shared style utilities and wire global styles

* test: add visual style verification pages

* docs: document styling structure and usage

* fix: apply Prettier formatting for CI
* feat: add shared icon library

* feat: add reusable Icon component

* test: add icon showcase for visual verification

* fix: apply Prettier formatting to icon files
feat: add foundational UI components

- add shared UI utility components
- add UI component test setup
- add test cleanup after each test
- added visual showcases, for design and responsive testing
- handle avatar initials safely
- apply Prettier formatting to UI components
Add form navigation UI components
* feat: add form UI components

* feat: add selection and filter components

* feat: add navigation and menu components

* test: add form and navigation component verification

* fix: apply Prettier formatting to UI components
* feat(shell): add app shell and core routes

Refs: #9

* feat(shell): refine app shell structure and navigation

Refs: #9

* fix(shell): tune responsiveness of site-header

Refs: #9

* fix(web): add mobile viewport metadata

Refs: #9

* fix(shell): reduce space between header and content

Refs: #9
* feat: add feedback UI components

* feat: add dialog and overlay components

* test: add feedback and overlay component verification

* docs: document shared UI component library

* fix: apply Prettier formatting to UI components
Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
* feature(auth): add mock authentication flow

* fix(auth): align mock user with shared data strategy

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
* feat: add reusable logo mark

* feat: add shared recipe metadata components

* feat: add reusable RecipeCard

* feat: add RecipeCard showcase

* test: add RecipeCard interaction tests

* fix: apply Prettier formatting to RecipeCard files
* comment(docs): add project concept and setup guide

* comment(docs): Update readme doc

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
* feat: add reusable pagination helper and tests

* feat: implement Explore search and recipe browsing

* docs: clarify AI use in development

* fix: improve Explore focus and status feedback

* fix: Applied prettier to ExplorePage
* feat(explore): add responsive filter and sort controls

* feat(explore): implement browse query and URL state

* feat(explore): add shared mock save state

* docs(explore): add server integration notes
* feat: add initial RecipeCreatePage

Refs: #35

* chore(add recipe): update recipe routing in App

Refs: #35

* feat(add recipe): add image preview

Refs: #35

* chore(add recipe): resize instruction box

Refs: #35

* feat(add recipe): add custom styling to image selector

Refs: #35

* feat(add recipe): add drag-and-drop for images and update styling

Refs: #35

* feat(add recipe): add re-order of ingredients and instructions

Refs: #35
* feat: implement cookbook browsing with shared recipe logic

* fix: refine cookbook filters and navigation semantics

* fix: make sheet body scroll within viewport

* test(cookbook): cover apply, clear and invalid mobile filters
* feat(recipe-detail): implement recipe detail page

* feat(recipe-detail): improve accessibility, add test recipe, and update tests

* feat(recipe-detail): refine serving amount rounding

* style(recipe-detail): refine layout and responsive sizing

* test(recipe-detail): update tests for responsive controls

* test(e2e): update recipe detail smoke test to use a real recipe route
* feat(auth): add database authentication and persistent sessions

* fix(auth): address review feedback

* fix(auth): protect routes and await session restoration

* fix(routes): use cookbook and recipe detail pages

* fix(routes): render recipe detail page after merge

* fix(e2e): align smoke tests with recipe and protected routes

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
* feat(auth): add database authentication and persistent sessions

* fix(auth): address review feedback

* feat(db): add recipe database model and migration

* fix(db): address recipe model review feedback

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
@hasanmo hasanmo requested review from olestan and oliverdr October 12, 2026 19:03
@hasanmo hasanmo requested a review from a team as a code owner October 12, 2026 19:03
@hasanmo hasanmo merged commit 8093f0c into main Oct 13, 2026
2 checks passed
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants